package com.onion.utils.vo;

import java.util.Date;

public class Operated<T extends Operator> {

    private T user;
    private Date time;

    public void setUser(T user){
        this.user = user;
    }
    public T getUser(){
        return this.user;
    }

    public void setTime(Date time){
        this.time = time;
    }
    public Date getTime(){
        return this.time;
    }

    public String getUserId(){
        return user!=null ? null : user.getUserId();
    }

}